<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <!-- import CSS -->
    <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.9/theme-chalk/index.css">
    <style>
        header a {
            text-decoration: none;
            color: #6c6c6c;
        }
        .el-table .el-table__cell{
            padding: 0;/*取消自带的上下间距*/
        }
    </style>
</head>
<body>
<div id="app">

    <el-container>
        <el-header height="150px">
            <div style="width: 1200px;margin: 0 auto">
                <img src="imgs/logo.png" style="width: 300px;vertical-align: middle" alt="">
                <a href="">首页
                    <el-divider direction="vertical"></el-divider>
                </a>
                <a href="">热点资讯
                    <el-divider direction="vertical"></el-divider>
                </a>
                <a href="">商家入驻
                    <el-divider direction="vertical"></el-divider>
                </a>
                <a href="">社会招聘
                    <el-divider direction="vertical"></el-divider>
                </a>
                <a href="">校园招聘
                    <el-divider direction="vertical"></el-divider>
                </a>
                <a href="">帮助
                    <el-divider direction="vertical"></el-divider>
                </a>
            </div>
            <div style="background-color: #82c8ec">
                <el-menu :default-active="activeIndex" class="el-menu-demo"
                         style="width: 1200px;margin: 0 auto"
                         background-color="#82c8ec"
                         text-color="#fff"
                         active-text-color="#fff"
                         mode="horizontal" @select="handleSelect">
                    <el-menu-item index="1">品牌男装</el-menu-item>
                    <el-menu-item index="2">精彩活动</el-menu-item>
                    <el-menu-item index="3">当季女装</el-menu-item>
                    <el-menu-item index="4">环球美食</el-menu-item>
                    <el-menu-item index="5">医药健康</el-menu-item>
                    <el-menu-item index="6">美妆彩妆</el-menu-item>
                    <el-menu-item index="7">母婴产品</el-menu-item>
                    <div style="float: right;position: relative;top: 10px">
                        <el-input placeholder="请输入搜索内容">
                            <el-button slot="append" icon="el-icon-search"></el-button>
                        </el-input>
                    </div>
                </el-menu>
            </div>
        </el-header>

        <el-main style="width: 1200px;margin: 0 auto">
            <el-row gutter="20">
                <el-col span="18">
                    <el-carousel height="400px">
                        <el-carousel-item>
                            <img src="imgs/b1.jpg" width="100%" height="100%" alt="">
                        </el-carousel-item>
                        <el-carousel-item>
                            <img src="imgs/b2.jpg" width="100%" height="100%" alt="">
                        </el-carousel-item>
                        <el-carousel-item>
                            <img src="imgs/b3.jpg" width="100%" height="100%" alt="">
                        </el-carousel-item>
                        <el-carousel-item>
                            <img src="imgs/b4.jpg" width="100%" height="100%" alt="">
                        </el-carousel-item>
                    </el-carousel>
                </el-col>
                <el-col span="6">
                    <el-card>
                        <h3>
                            <i style="font-weight: bold" class="el-icon-trophy">销量最高</i>
                        </h3>
                        <el-divider></el-divider>
                        <el-table :data="topArr">
                            <el-table-column label="排名" width="50px" type="index"></el-table-column>
                            <el-table-column label="商品标题" width="80px" prop="title"></el-table-column>
                            <el-table-column label="销量" width="80px" prop="saleCount"></el-table-column>
                        </el-table>
                    </el-card>
                </el-col>
            </el-row>
        </el-main>

        <el-footer>
            <div style="height: 95px;background-image: url('imgs/wave.png')"></div>
            <div style="background-color: #3f3f3f;text-align: center;color: #d1d1d1;
            padding: 10px 0;height: 100px;font-size:12px">
                <p>Copyright © 北京达内金桥科技有限公司版权所有 京ICP备12003709号-3 京公网安备 11010802029572号</p>
                <p>达内在线WWW.TMOOC.CN 专注于IT职业技能培训</p>
                <p>涵盖20余门课程体系，致力于打造权威的IT职业教育学习平台</p>
            </div>
        </el-footer>
    </el-container>
</div>
</body>
<!-- import Vue before Element -->
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
<script>
    let v = new Vue({
        el: '#app',
        data: function () {
            return {
                activeIndex: "1",
                topArr: [{title: "小米手机", saleCount: 685}, {title: "苹果手机", saleCount: 685}, {
                    title: "华为手机",
                    saleCount: 479
                },
                    {title: "安踏拖鞋", saleCount: 385}, {title: "李宁蓝球", saleCount: 245}, {title: "特步服装", saleCount: 165}]
            }
        },
        methods: {
            handleSelect(key, keyPath) {
                console.log(key, keyPath);
            }
        }
    })
</script>
</html>